package tr.edu.yildiz.ce.dap.appagent.command.deployment.agent;

import tr.edu.yildiz.ce.dap.appagent.command.deployment.base.AbstractAgentCommand;
import tr.edu.yildiz.ce.dap.appagent.command.deployment.base.CommandConstants;
import tr.edu.yildiz.ce.dap.appagent.criteria.CriteriaConstants;
import tr.edu.yildiz.ce.dap.appagent.exception.AgentRetryException;
import tr.edu.yildiz.ce.dap.appagent.exception.BasicAgentException;
import tr.edu.yildiz.ce.dap.appagent.model.Criteria;
import tr.edu.yildiz.ce.dap.appagent.model.CriteriaList;
import tr.edu.yildiz.ce.dap.appagent.model.DapMessage;
import tr.edu.yildiz.ce.dap.appagent.process.base.AbstractProcess;

public class DetailCommand extends AbstractAgentCommand implements CommandConstants,CriteriaConstants{
	
	String name ;
	String version;

	public DetailCommand(AbstractProcess process,String name,String version) {
		super(process);
		this.name = name;
		this.version = version;
	}
	
	@Override
	protected void prepareRequest(DapMessage msg) throws BasicAgentException {
		msg.setCommand(CommandConstants.DETAIL);
		msg.setAppName(name);
		msg.setAppVersion(version);
	}
	
	@Override
	protected void processResponse(DapMessage responseMsg)
			throws BasicAgentException, AgentRetryException {
		
		
	}

	@Override
	public DapMessage rollback(DapMessage msg) throws BasicAgentException {
		// TODO Auto-generated method stub
		return null;
	}

}
